package com.site.wisdom_construction.util.imgUtil;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * @Author daiyifei
 * @Date 2021/12/15
 * @Description
 */
@Component
@ConfigurationProperties(prefix = "oss")
public class OssEntity {
    @Value("${oss.endpoint}")
    private static String endpoint;

    @Value("${oss.keyId}")
    private static String keyId;

    @Value("${oss.keySecret}")
    private static String keySecret;

    @Value("${oss.bucketName}")
    private static String bucketName;

    @Value("${oss.fileHost}")
    private static String fileHost;

    public static String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        OssEntity.keyId = keyId;
    }

    public static String getKeySecret() {
        return keySecret;
    }

    public void setKeySecret(String keySecret) {
        OssEntity.keySecret = keySecret;
    }

    public static String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        OssEntity.bucketName = bucketName;
    }

    public static String getFileHost() {
        return fileHost;
    }

    public void setFileHost(String fileHost) {
        OssEntity.fileHost = fileHost;
    }

    public void setEndpoint(String endpoint) {
        OssEntity.endpoint = endpoint;
    }

    public static String getEndpoint() {
        return endpoint;
    }



}
